package com.travelsky.login.domain;

public class BusinessException extends RuntimeException {

  /**异常代码*/
  private String code;
  /**异常信息*/
  private String msg;

  public BusinessException(String code, String msg) {
    super(code + " [" + msg + "]");
    this.code = code;
    this.msg = msg;
  }

  /**
   * Gets the value of code.
   *
   * @return the value of code
   */
  public String getCode() {
    return code;
  }

  /**
   * Gets the value of msg.
   *
   * @return the value of msg
   */
  public String getMsg() {
    return msg;
  }
}
